import { Dimensions } from 'react-native';

const deviceWidthDp = Dimensions.get('window').width;
const uiWidthPx = 375;

function PxToDp(uiElementPx) {
  return uiElementPx * (deviceWidthDp / uiWidthPx);
}

export default PxToDp;
